package top.humbleyuan.designmode.singleton;

/**
 * @Author HumbleYuan
 * @Date 2019/10/9 13:48
 * @Des 在类加载时就创建实例对象,不管需不需要，线程安全
 */
public class HungrySingleton {
    private static HungrySingleton singleton = new HungrySingleton();

    private HungrySingleton() {}

    public static HungrySingleton getHungrySingleton() {
        return singleton;
    }


}
